package com.android.goal;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
//import android.widget.ListView;
import android.widget.TextView;

public class MatchViewGroup extends LinearLayout {
	public TextView homeName;
	public TextView awayName;
	public TextView score;
	public MatchViewGroup(Context context){
		super(context);		
		// Su dung layoutInflater de gan giao dien trong league_view.xml cho class nay
        LayoutInflater li = (LayoutInflater) this.getContext()
                                .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        li.inflate(R.layout.match_view, this, true);
        
        homeName = (TextView) findViewById(R.id.match_home_name);
        awayName = (TextView) findViewById(R.id.match_away_name);
        score = (TextView) findViewById(R.id.match_score);
	}
}
